﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace OddUserManager.Model
{
    public class BookMark : Entity
    {

        /// <summary>
        /// 标签名
        /// </summary>
        public string MarkName { get; set; }

        /// <summary>
        /// 标签描述
        /// </summary>
        public string MarkDesc { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public int MarkIndex { get; set; }

        /// <summary>
        /// 标签颜色取值
        /// </summary>
        public string MarkColor { get; set; }

        /// <summary>
        /// 创建用户ID
        /// </summary>
        public int CreateAppUserId { get; set; }

        /// <summary>
        /// 创建用户名
        /// </summary>
        [DapperIgnore]
        public string CreateAppUserName { get; set; }

        /// <summary>
        /// 标签创建时间
        /// </summary>
        [JsonConverter(typeof(LongDateTimeConvert))]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 修改用户ID
        /// </summary>
        public int ModAppUserId { get; set; }

        /// <summary>
        /// 修改用户名
        /// </summary>
        [DapperIgnore]
        public string ModAppUserName { get; set; }

        /// <summary>
        /// 标签修改时间
        /// </summary>
        [JsonConverter(typeof(LongDateTimeConvert))]
        public DateTime ModDate { get; set; }
    }
}
